home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
MATHEMAT
/
1769.ZIP
/
ALGIN3
< prev
next >
Wrap
Text File
|
1987-02-21
|
730b
|
37 lines
order e p q pb qb
* e is a small parameter (epsilon)
define h
p^2
q^2
8 e p q
define f
pb q
e pb^2
-e q^2
differentiate dfdq = d f/ d q
differentiate dfdpb = d f/ d pb
print dfdq
print dfdpb
* There is no "solve" command in PFSA, one can use various
* commands such as "compute" and "extract" to aid in big
* computations. Here we see by a simple calculation:
* q=qb - 2 e pb and p=pb - 2 e qb + 4 e^2 pb .
define qequals
qb
-2 e pb
define pequals
pb
-2 e qb
4 e^2 pb
substitute qequals for q in h
substitute pequals for p in h
print h
* We see that the e term was eliminated. More transformations
* can be done to eliminate other unwanted terms.
end input